import './App.css';
import Home from "./page/home";
import {BrowserRouter as Router, Routes,Route} from 'react-router-dom';
import { Layout } from 'antd';
import Login from "./page/login";
import Season from "./page/season";
import Detail from "./page/detail";
import OnlineBuy from "./page/buy/OnlineBuy";
import OfflineBuy from "./page/buy/OfflineBuy";
import Orders from "./page/orders";
import Person from "./page/person/Person";
import Register from "./page/person/Register";


function App() {

  return (
      <Router>
          <Layout>
                  <Routes>
                      <Route path="/" element={<Home />} />
                      <Route path="/login" element={<Login />} />
                      <Route path="/season" element={<Season />} />
                      <Route path="/detail" element={<Detail />} />
                      <Route path="/online" element={<OnlineBuy />} />
                      <Route path="/offline" element={<OfflineBuy />} />
                      <Route path="/Orders" element={<Orders/>} />
                      <Route path="/Person" element={<Person/>} />
                      <Route path="/Register" element={<Register/>} />
                  </Routes>
          </Layout>
      </Router>
  );
}

export default App;

